<%@ page language="java" import="java.util.*" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@include file="/inc/taglibs.jsp" %>
<style>
.nolooked{font-weight:bold;}
</style>
<script>
$(function (){
	initQueryForm();
});
function delall(){
	var $ck=$(".ck:checked");
	if($ck.length>0){
		if(confirm("确定要删除此条数据？")==true){
			$.ajax({url:path+"/downloadurl/delete",data:$("#form1").serialize(),dataType:'json',success:function(msg){
				if(msg.stat=='S')
				middelbodyReload();
				showTip(msg.msg,null,1);
			}});
		}
	}else{
		alert("未选择数据！");
	}
}
function deleteHtml(id)
{
	urlParameterGoPage('/downloadurl/deleteHtml/'+id,'查看捕获结果');
	//urlParameterGoPage('/website/list','test,,,,');
	return false;
}
</script>
<form id="form1" action="${path }/downloadurl/list" method="post" onsubmit="return pageSeach(this);">
<c:set var="formId" value="form1"/>
标题<input type="text" name="title" value="${title }">
<button type="submit"">查询</button>
<table class="listtable" cellpadding="0" cellspacing="0">
<thead>
<tr>
<td colspan="100%" style="font-weight:bold;">
<button onclick="delall();" type="button">删除</button>
</td>
</tr>
<tr>
<td colspan="100%" style="color:#FF0000;">
你目前共使用${folderSize}MB系统空间
</td>
</tr>
<tr  style="background-color:#fff494;">
<th width="10px"><label><input type="checkbox" for="ck" onclick="checkall(this);">全选</label></th>
<th>标题</th>
<th>时间</th>
<th>状态</th>
<th>查看</th>
<th>下载</th>
<th>删除</th>
</tr>
</thead>
<tbody>
<c:forEach items="${page.data }" var="item" varStatus="stat">
<tr>
<td><input type="checkbox" name="ids" value="${item.id}" class="ck"></td>
<td><a href="${item.url }" target="_blank" title="${item.title}">${(fn:length(item.title)>20)?(fn:substring(item.title,0,20)):item.title}<c:if test="${(fn:length(item.title)>20)}">...</c:if></a></td>
<td>
${item.recordtime}
</td>
<td>
<c:if test="${item.isNew==1 }">
<img src="${path}/themes/images/tubiao/new.gif"/>
</c:if>
</td>
<td>
<c:if test="${item.isdownload==1}">
<a href="../download/${item.id}/${item.id}.htm" target="_blank">查看</a>
</c:if>
</td>
<td>
<c:if test="${item.isdownload==1}">
<a href="${path}/downloadurl/download/${item.id}"  target="_self">下载</a>
</c:if>
<c:if test="${item.isdownload==-1}">
已删除
</c:if>
<c:if test="${item.isdownload==0}">
未下载
</c:if>
</td>
<td>
<c:if test="${item.isdownload==1}">
<a href="#" onclick="return deleteHtml(${item.id})" target="_self">删除</a>
</c:if>
</td>
</tr>
</c:forEach>
</tbody>
<tfoot>
<tr>
<td colspan="100%">
<%@include file="/inc/page.jsp" %>
</td>
</tr>
</tfoot>
</table>
</form>
